package com.itheima.d3_collection_traverse;

public class Movie {
private String name;
private  double num;

private  String actor;

    public Movie() {
    }

    public Movie(String name, double num, String actor) {
        this.name = name;
        this.num = num;
        this.actor = actor;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public double getNum() {
        return num;
    }

    public void setNum(double num) {
        this.num = num;
    }

    public String getActor() {
        return actor;
    }

    public void setActor(String actor) {
        this.actor = actor;
    }

    @Override
    public String toString() {
        return "Movie{" +
                "name='" + name + '\'' +
                ", num=" + num +
                ", actor='" + actor + '\'' +
                '}';
    }
}
